#ifndef OPTIONDIALOG_H
#define OPTIONDIALOG_H

#include <QWidget>
#include <QHostAddress>
namespace Ui
{
    class Option;
}
class optionDialog : public QWidget
{
      Q_OBJECT
public:
    optionDialog();
    ~optionDialog();
    private slots:
            void getOption();
            void cleanOption();
            void changeShow(int index);
    signals:
            void optionChanged(bool isClient,QHostAddress *ip,int port);

    private:
    Ui::Option    *option; //对话框ui
    public:
    QHostAddress  *ip;    //IP地址
    int        port; //端口号
    bool isClient;
};

#endif // OPTIONDIALOG_H
